package com.techstar.ats.codec.history.decoder;

import io.netty.buffer.ByteBuf;
import com.techstar.ats.codec.DateTimeCodec;
import com.techstar.ats.codec.Decoder;
import com.techstar.ats.codec.StringCodec;
import com.techstar.ats.dxp.history.F15Dispatcher;

public enum F15DispatcherDecoder implements Decoder<F15Dispatcher> {
	INSTANCE;

	public F15Dispatcher create() {
		return new F15Dispatcher();
	}

	public void decode(ByteBuf buf, F15Dispatcher value) {
		value.reportTime = DateTimeCodec.INSTANCE.get(buf);
		value.user = (new StringCodec(32)).get(buf);
		value.log = (new StringCodec(256)).get(buf);
	}
}
